#include "Item.hh"

namespace Item {
    // 治疗药水
    const Item HealingPotion {
        "Healing Potion",
        "healing 50%",
        [](Ahero& hero) { hero.healing(hero.getMaxHealth() / 2); }
    };

    // 压力缓解剂
    const Item StressReliever {
        "Calming Incense",
        "Decrease 30 stress",
        [](Ahero& hero) { hero.stressHealing(30); }
    };

    // 速度之靴
    const Item SpeedBoost {
        "Swift Boots",
        "Increase speed 2",
        [](Ahero& hero) { hero.changeSpeed(2); }
    };

    // 力量药剂
    const Item AttackBoost {
        "Strength Elixir",
        "Increase damage 10%, Decrease speed 1",
        [](Ahero& hero) { 
            hero.changeAttack(hero.getMaxAttack() / 10);  // 同时提升最小和最大攻击
            hero.changeSpeed(-1);
        }
    };
}